import request from '@/utils/request'


export function getCompany() {
  return request({
    url: `/api/security/company`, 
    method: 'get'
  })
}

export function getCompanyId(companyId) {
  return request({
    url: `/api/security/company/${companyId}`, 
    method: 'get'
  })
}

export function postCompany(data) {
  return request({
    url: '/api/security/company', 
    method: 'post',
    data
  })
}

export function deleteCompany(companyId) {
  return request({
    url: `/api/security/company/${companyId}`,
    method: 'delete'
  })
}

export function putCompany(companyId,data) {
  return request({
    url: `/api/security/company/${companyId}`,
    method: 'put',
    data
  })
}